#include <stdio.h>
int gcd(int a,int b){
	if(b==0)
		return a;
	gcd(b,a%b);
	
}int main(){
	int t,n,a,b;
	scanf("%d",&t);
	while(t--){
		scanf("%d%d%d",&n,&a,&b);
		if(n/gcd(a,b)%2)
			printf("huaye\n");
		else
			printf("suantou\n");
		
	}return 0;
	
}